#!/usr/bin/env bash
npm config get registry #检查仓库镜像
npm config set registry=https://registry.npmjs.org
echo '请登陆npm账号'
npm login #登陆
echo '------------publishing------------'
npm publish #发布
npm config set registry=https://registry.npm.taobao.org
echo '发布完成'
exit

#chmod +x publish.sh